#{if _mode == 'display' }
	<table id="collab_table">
				<caption>Liste des collaborateurs actuels</caption> <br/>
				<thead>
					<tr>
						<th>Nom</th>
						<th>Prénom</th>
						<th>Trigramme</th>
						<th>Date de mise à jour</th>
						<th>Date de validation</th>
						<th>Statut du profil</th>
						<th>Actions</th>
						<th>CRUD</th>
					</tr>
				</thead>
				<tbody>
					#{list items: _collaborators, as:'collab' }
						<tr>		
							<td>${collab.getTmpProfil().getFirstname()}</td>
			      			<td>${collab.getTmpProfil().getName()}</td>
							<td>${_tools.generateCollaboratorTrigram(collab)}</td>	
							<td>${/*collab.getTmpProfil().getUpdatingDate()*/}</td>
							<td>${collab.getTmpProfil().getValidationDate()}</td>
							<td>${collab.getTmpProfil().getStatus()}</td>
							<td>
								<button type="button" id="displayProfile" onclick="window.location='@{Collaborator.profile(collab.getUser().getLogin())}'">Afficher profil</button>
								<button type="button" id="generatePDFProfile" onclick="window.location='@{PDFRenderer.generateProfilePDF(collab.getUser().getLogin())}'">Générer fiche profil</button>
								<button type="button" id="notification" onclick="javacript:openNotificationWindow('${collab.getUser().getLogin()}', ${collab.getCollaboratorID()})">Poster Notification</button>
							</td>
							<td>
<!-- 								<img src="http://www.bloggingbistro.com/wp-content/uploads/2011/03/Delete-Icon.png" width="20px" onclick="deleteCollab(${collab.getCollaboratorID()}, '${collab.getValidProfile().getName().escapeJavaScript().escapeHtml()}');"/> -->
							</td>
						</tr>
					#{/list}
				</tbody>
		</table>
#{/if}


#{if _mode == 'add'}
	#{form @RTU.addCollab(), method:'POST', id:'addCollabForm', enctype:'multipart/form-data' }
		#{field 'name'}
	      	<label>Nom</label>
	      	<br/>
	        <input type="text" size="20" id="${field.id}" name="${field.name}" />
		#{/field}		
		<br/>
		
		#{field 'firstname'}
	      	<label>Prénom</label>
	        <input type="text" size="20" id="${field.id}" name="${field.name}" />
		#{/field}		
		<br/>
		
		#{field 'login'}
	      	<label>Login</label>
	        <input type="text" size="20" id="${field.id}" name="${field.name}" />
		#{/field}		
		<br/>
		
		#{field 'pass'}
	      	<label>Mot de passe</label>
	        <input type="text" size="20" id="${field.id}" name="${field.name}" />
		#{/field}
		<br/>
	#{/form}	
	<button id="add_collab_button" onclick="javascript:submitNewCollab()">Ajouter le collaborateur</button>	
#{/if}
